<%@ page contentType="text/html;charset=UTF-8" %> 
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@page import="java.io.FileOutputStream"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.io.File"%>
<%@page import="java.io.OutputStream"%>
<html>
<head>
<title>Muzycy.pl - serwis informacyjno usĹ‚ugowy o muzykach</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<link href="css/styles.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT TYPE="text/javascript">
<!--

    function newImage(arg) {
        if (document.images) {
            rslt = new Image();
            rslt.src = arg;
            return rslt;
        }
    }

    function changeImages() {
        if (document.images && (preloadFlag == true)) {
            for (var i = 0; i < changeImages.arguments.length; i += 2) {
                document[changeImages.arguments[i]].src = changeImages.arguments[i + 1];
            }
        }
    }

   /* var preloadFlag = false;
    function preloadImages() {
        if (document.images) {
            index_over = newImage("images/index-over.jpg");
            logowanie_over = newImage("images/logowanie-over.jpg");
            rejestracja_over = newImage("images/rejestracja-over.jpg");
            pomoc_over = newImage("images/pomoc-over.jpg");
            kontakt_over = newImage("images/kontakt-over.jpg");
            preloadFlag = true;
        }
    }*/

// -->
</SCRIPT>
<div id="body">
	<div id="menu">
		<ul>
			<li>
			<a href="index.htm" class="active"><img src="images/but_home.jpg" alt="" width="119" height="67" />	</a>
			</li>
			<li>
			<a href="login.htm"><img src="images/but_login.jpg"	alt="" width="108" height="67" /></a>
			</li>
			<li>
			<a href="register.htm"><img src="images/but_register.jpg" alt="" width="122" height="67" /></a>
			</li>
			<li>
			<a href="help.htm"><img src="images/but_help.jpg" alt="" width="75" height="67" /></a>
			</li>
			<li>
			<a href="contact.htm"><img src="images/but_contact.jpg" alt="" width="170" height="67" /></a>
			</li>
		</ul>
		<div class="slogan">
			<img src="images/slogan_register.jpg" alt="" width="594" height="144" />
		</div>
	</div>
	<div id="overview">
		<div class="navigation">
					
		</div>
		<div class="register">
			<img src="images/info_register.jpg" alt="" width="724" height="29" />
			<form:form action="add.htm" commandName="user">
				<ul>
				<li>Login:</li>
				<li><form:input path="username" /></li>
				<li><span class="warning"><c:out value="${usernameError}"/></span></li>
				</ul>
				<ul>
				<li>Hasło:</li>
				<li><form:password path="password" /></li>
				<li><span class="warning"><c:out value="${passwordError}"/></span></li>
				</ul>
				<ul>
				<li>Powtórz hasło:</li>
				<li><form:password path="confirmPassword" /></li>
				<li><span class="warning"><c:out value="${confrimPasswordError}"/></span></li>
				</ul>
				<ul>
				<li>Imię:</li>
				<li><form:input path="name" /></li>
				<li><span class="warning"><c:out value="${nameError}"/></span></li>
				</ul>
				<ul>
				<li> Nazwisko:</li>
				<li><form:input path="lastname" /></li>
				<li><span class="warning"><c:out value="${lastnameError}"/></span></li>
				</ul>
				<ul>
				<li>Email:</li>
				<li><form:input path="email" /></li>
				<li><span class="warning"><c:out value="${emailError}"/></span></li>
				</ul>
				<ul>
				<li>Telefon:</li>
				<li><form:input path="telephone" /></li>
				<li><span class="warning"><c:out value="${telephoneError}"/></span></li>
				</ul>
				<ul>
				<li>Miasto:</li>
				<li><form:input path="city" /></li>
				<li><span class="warning"><c:out value="${cityError}"/></span></li>
				</ul>
				<ul>
				<li>Państwo:</li>
				<li><form:input path="country" /></li>
				<li><span class="warning"><c:out value="${countryError}"/></span></li>
				</ul>
				<ul>
				<li/><li><input type="submit" class="myButton2" value="Register"></li>
				</ul>
			</form:form>
		</div>
	</div>
	<div id="footer">
		<div id="copyright">
			Copyright Czesiu. All rights reserved. Design by 
			<a href="http://nyan.cat" >NyanCat</a>
		</div>
	</div>


</div>
</html>